package com.moxiao.yfjh.module.activity.controller.admin.activityenrollverificate.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

import org.springframework.format.annotation.DateTimeFormat;

import static com.moxiao.yfjh.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 相亲报名（活动）核销 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class ActivityEnrollVerificateBaseVO {

    @Schema(description = "报名id", example = "26307")
    private Long enrollId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25272")
    private Long userId;

    @Schema(description = "活动id", example = "29730")
    private Long activityId;

    @Schema(description = "活动商品id", example = "11862")
    private Long activityProductsId;

    @Schema(description = "活动商品金额")
    private BigDecimal price;

    @Schema(description = "核销码")
    private String verificationCode;

    @Schema(description = "是否核销：0-是，1-否", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Byte status;

    @Schema(description = "类型：0=正常，1=已退款")
    private Byte type;

    @Schema(description = "核销时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime verificationTime;

}
